package pnu.ssm.http;

import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;

public class Response implements Serializable {
	private boolean optimum = false;
	private int generationCnt = 5000;
	private boolean elitism = true;
	private double uniformRate = 0.5;
	private double mutationRate = 0.5;
	private int tournamentSize = 5;
	private int takesTime = 123121;
	private int fittest = 123;
	private List<Response.Transporter> transporters = new LinkedList<Response.Transporter>();
	private List<String> logs = new LinkedList<String>();
	
	public Response() {
		// TODO Auto-generated constructor stub
	}
	
	public boolean isOptimum() {
		return optimum;
	}

	public void setOptimum(boolean optimum) {
		this.optimum = optimum;
	}

	public int getGenerationCnt() {
		return generationCnt;
	}

	public void setGenerationCnt(int generationCnt) {
		this.generationCnt = generationCnt;
	}

	public boolean isElitism() {
		return elitism;
	}

	public void setElitism(boolean elitism) {
		this.elitism = elitism;
	}

	public double getUniformRate() {
		return uniformRate;
	}

	public void setUniformRate(double uniformRate) {
		this.uniformRate = uniformRate;
	}

	public double getMutationRate() {
		return mutationRate;
	}

	public void setMutationRate(double mutationRate) {
		this.mutationRate = mutationRate;
	}

	public int getTournamentSize() {
		return tournamentSize;
	}

	public void setTournamentSize(int tournamentSize) {
		this.tournamentSize = tournamentSize;
	}

	public int getTakesTime() {
		return takesTime;
	}

	public void setTakesTime(int takesTime) {
		this.takesTime = takesTime;
	}

	public int getFittest() {
		return fittest;
	}

	public void setFittest(int fittest) {
		this.fittest = fittest;
	}

	public List<Response.Transporter> getTransporters() {
		return transporters;
	}

	public void setTransporters(List<Response.Transporter> transporters) {
		this.transporters = transporters;
	}

	public List<String> getLogs() {
		return logs;
	}

	public void setLogs(List<String> logs) {
		this.logs = logs;
	}

	static class Transporter implements Serializable {
		private String label = "소나타";
		private List<String> jobs = new LinkedList<String>();
		
		public Transporter() {
			// TODO Auto-generated constructor stub
		}
		
		public String getLabel() {
			return label;
		}
		public void setLabel(String label) {
			this.label = label;
		}
		public List<String> getJobs() {
			return jobs;
		}
		public void setJobs(List<String> jobs) {
			this.jobs = jobs;
		}
	}
}
